package com.trsjh.db.domains;
// Generated 2012-1-13 12:55:11 by Hibernate Tools 3.4.0.CR1


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * CustomerRecord generated by hbm2java
 */
@Entity
@Table(name="customerRecords"
    ,catalog="myglass"
)
public class CustomerRecord  implements java.io.Serializable {

  
	@Id @GeneratedValue(strategy=IDENTITY)    
   @Column(name="id", unique=true, nullable=false)
     private Integer id;
    
    @ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="solution")   
     private GlassOrder solution;
    
    @ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="user", nullable=false)   
    private CustomerAccount customerAccount;
    
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="time", length=19)
     private Date time;
    
    @Column(name="leftSight", precision=12, scale=0)
     private Float leftSight;

    @Column(name="rightSight", precision=12, scale=0)
     private Float rightSight;
    
    @Column(name="left2", precision=12, scale=0)
     private Float left2;

    @Column(name="right2", precision=12, scale=0)
     private Float right2;

    @Column(name="left21", precision=12, scale=0)
    private Float left21;

   @Column(name="right21", precision=12, scale=0)
    private Float right21;
    
    
    @Column(name="distance", precision=12, scale=0)
     private Float distance;
    
    @Column(name="note")
     private String note;
    
    @Column(name="score")
    private Float score=0f;

    public CustomerRecord() {
    }

	
    public CustomerRecord(CustomerAccount customerAccount) {
        this.customerAccount = customerAccount;
    }
    public CustomerRecord(GlassOrder glassOrder, CustomerAccount customerAccount, Date time, Float left, Float right, Float left2, Float right2, Float distance, String note,Float score) {
       this.solution = glassOrder;
       this.customerAccount = customerAccount;
       this.time = time;
       this.leftSight = left;
       this.rightSight = right;
       this.left2 = left2;
       this.right2 = right2;
       this.distance = distance;
       this.note = note;
       this.score=score;
    }
   
    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    

    public GlassOrder getSolution() {
		return solution;
	}


	public void setSolution(GlassOrder solution) {
		this.solution = solution;
	}


	public CustomerAccount getCustomerAccount() {
		return customerAccount;
	}


	public void setCustomerAccount(CustomerAccount customerAccount) {
		this.customerAccount = customerAccount;
	}

    public Date getTime() {
        return this.time;
    }
    
    public void setTime(Date time) {
        this.time = time;
    }


    
    public Float getLeftSight() {
		return leftSight;
	}


	public void setLeftSight(Float leftSight) {
		this.leftSight = leftSight;
	}


	public Float getRightSight() {
		return rightSight;
	}


	public void setRightSight(Float rightSight) {
		this.rightSight = rightSight;
	}


	public Float getLeft2() {
        return this.left2;
    }
    
    public void setLeft2(Float left2) {
        this.left2 = left2;
    }

    public Float getRight2() {
        return this.right2;
    }
    
    public void setRight2(Float right2) {
        this.right2 = right2;
    }

    public Float getDistance() {
        return this.distance;
    }
    
    public void setDistance(Float distance) {
        this.distance = distance;
    }

    public String getNote() {
        return this.note;
    }
    
    public void setNote(String note) {
        this.note = note;
    }


	public Float getScore() {
		return score;
	}
	public void setScore(Float score) {
		this.score = score;
	}


	public Float getLeft21() {
		return left21;
	}


	public void setLeft21(Float left21) {
		this.left21 = left21;
	}


	public Float getRight21() {
		return right21;
	}


	public void setRight21(Float right21) {
		this.right21 = right21;
	}




}


